package com.fary.mapper;


import com.fary.base.BaseMapper;
import com.fary.po.MyRoleUser;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleUserMapper extends BaseMapper<MyRoleUser> {

    @Select("SELECT * FROM my_role_user ru WHERE ru.user_id = #{userId}")
    List<MyRoleUser> getMyRoleUserByUserId(Integer userId);
}
